/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.doctor.netHosptial.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
 * 门诊医嘱明细Entity
 * @author zp
 * @version 2016-05-31
 */
public class NetPresc extends DataEntity<NetPresc> {

	private static final long serialVersionUID = 1L;
	private String mainId;
	private String patientId;
	private String idGroup;
	private String clinicId;		//就诊id
	private String clinicNo;		//就诊No
	private Date visitDate;		// 就诊日期
	private String visitNo;		// 就诊序号
	private String serialNo;		// 流水号
	private String prescNo;		// 处方序号
	private String itemNo;		// 项目序号
	private String itemClass;		// 项目类别
	private String drugCode;		// 药名编码
	private String drugName;		// 药品名称
	private String drugSpec;		// 药品规格
	private String firmId;		// 厂家标识
	private String firmIdName;		// 厂家标识
	private String units;		// 单位
	private String amount;		// 数量
	private String dosage;		// 一次用量
	private String dosageUnits;		// 用量单位
	private String administration;		// 用药途径
	private String frequency;		// 频次
	private String providedIndicator;		// 自备标记(是否为自备药 ，0为不是，1为是)
	private String costs;		// 计价金额
	private String charges;		// 实收费用
	private String chargeIndicator;		// 收费标记(是否已收费。0为未收费，1已收费)
	private String repetition;		// 付数
	private String subOrderNo;		// 子医嘱组别
	private String getdrugFlag;		// 取药标志
	private String visitDateStr;
	private String hisloginname;

	public NetPresc() {
		super();
	}

	public NetPresc(String id){
		super(id);
	}

	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}

	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getVisitDate() {
		return visitDate;
	}

	public void setVisitDate(Date visitDate) {
		this.visitDate = visitDate;
	}
	
	@Length(min=0, max=5, message="就诊序号长度必须介于 0 和 5 之间")
	public String getVisitNo() {
		return visitNo;
	}

	public void setVisitNo(String visitNo) {
		this.visitNo = visitNo;
	}
	
	@Length(min=0, max=20, message="流水号长度必须介于 0 和 20 之间")
	public String getSerialNo() {
		return serialNo;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}
	
	@Length(min=0, max=5, message="处方序号长度必须介于 0 和 5 之间")
	public String getPrescNo() {
		return prescNo;
	}

	public void setPrescNo(String prescNo) {
		this.prescNo = prescNo;
	}
	
	@Length(min=0, max=2, message="项目序号长度必须介于 0 和 2 之间")
	public String getItemNo() {
		return itemNo;
	}

	public void setItemNo(String itemNo) {
		this.itemNo = itemNo;
	}
	
	@Length(min=0, max=1, message="项目类别长度必须介于 0 和 1 之间")
	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}
	
	@Length(min=0, max=20, message="药名编码长度必须介于 0 和 20 之间")
	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	
	@Length(min=0, max=100, message="药品名称长度必须介于 0 和 100 之间")
	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	
	@Length(min=0, max=20, message="药品规格长度必须介于 0 和 20 之间")
	public String getDrugSpec() {
		return drugSpec;
	}

	public void setDrugSpec(String drugSpec) {
		this.drugSpec = drugSpec;
	}
	
	@Length(min=0, max=10, message="厂家标识长度必须介于 0 和 10 之间")
	public String getFirmId() {
		return firmId;
	}

	public void setFirmId(String firmId) {
		this.firmId = firmId;
	}
	
	@Length(min=0, max=8, message="单位长度必须介于 0 和 8 之间")
	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}
	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	public String getDosage() {
		return dosage;
	}

	public void setDosage(String dosage) {
		this.dosage = dosage;
	}
	
	@Length(min=0, max=8, message="用量单位长度必须介于 0 和 8 之间")
	public String getDosageUnits() {
		return dosageUnits;
	}

	public void setDosageUnits(String dosageUnits) {
		this.dosageUnits = dosageUnits;
	}
	
	@Length(min=0, max=16, message="用药途径长度必须介于 0 和 16 之间")
	public String getAdministration() {
		return administration;
	}

	public void setAdministration(String administration) {
		this.administration = administration;
	}
	
	@Length(min=0, max=16, message="频次长度必须介于 0 和 16 之间")
	public String getFrequency() {
		return frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}
	
	@Length(min=0, max=1, message="自备标记(是否为自备药 ，0为不是，1为是)长度必须介于 0 和 1 之间")
	public String getProvidedIndicator() {
		return providedIndicator;
	}

	public void setProvidedIndicator(String providedIndicator) {
		this.providedIndicator = providedIndicator;
	}
	
	public String getCosts() {
		return costs;
	}

	public void setCosts(String costs) {
		this.costs = costs;
	}
	
	public String getCharges() {
		return charges;
	}

	public void setCharges(String charges) {
		this.charges = charges;
	}
	
	@Length(min=0, max=1, message="收费标记(是否已收费。0为未收费，1已收费)长度必须介于 0 和 1 之间")
	public String getChargeIndicator() {
		return chargeIndicator;
	}

	public void setChargeIndicator(String chargeIndicator) {
		this.chargeIndicator = chargeIndicator;
	}
	
	@Length(min=0, max=2, message="付数长度必须介于 0 和 2 之间")
	public String getRepetition() {
		return repetition;
	}

	public void setRepetition(String repetition) {
		this.repetition = repetition;
	}
	
	@Length(min=0, max=2, message="子医嘱组别长度必须介于 0 和 2 之间")
	public String getSubOrderNo() {
		return subOrderNo;
	}

	public void setSubOrderNo(String subOrderNo) {
		this.subOrderNo = subOrderNo;
	}
	
	@Length(min=0, max=2, message="取药标志长度必须介于 0 和 2 之间")
	public String getGetdrugFlag() {
		return getdrugFlag;
	}

	public void setGetdrugFlag(String getdrugFlag) {
		this.getdrugFlag = getdrugFlag;
	}

	public String getMainId() {
		return mainId;
	}

	public void setMainId(String mainId) {
		this.mainId = mainId;
	}

	public String getFirmIdName() {
		return firmIdName;
	}

	public void setFirmIdName(String firmIdName) {
		this.firmIdName = firmIdName;
	}

	public String getIdGroup() {
		return idGroup;
	}

	public void setIdGroup(String idGroup) {
		this.idGroup = idGroup;
	}

	public String getClinicNo() {
		return clinicNo;
	}

	public void setClinicNo(String clinicNo) {
		this.clinicNo = clinicNo;
	}

	public String getVisitDateStr() {
		return visitDateStr;
	}

	public void setVisitDateStr(String visitDateStr) {
		this.visitDateStr = visitDateStr;
	}

	public String getHisloginname() {
		return hisloginname;
	}

	public void setHisloginname(String hisloginname) {
		this.hisloginname = hisloginname;
	}
}